package com.jshare.entity;
// default package

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;


/**
 * Member entity. @author MyEclipse Persistence Tools
 */

public class Member  implements java.io.Serializable {


    // Fields    

     private String name;
     private String passwd;
     private String email;
     private String role;
     private Timestamp regtime;
     private Set articles = new HashSet(0);
     private Set tiezis = new HashSet(0);
     private Set tzReplies = new HashSet(0);

    
    // Constructors

    /** default constructor */
    public Member() {
    }

	/** minimal constructor */
    public Member(String name, String passwd, String email) {
        this.name = name;
        this.passwd = passwd;
        this.email = email;
    }
    
    /** full constructor */
    public Member(String name, String passwd, String email, String role, Timestamp regtime, Set articles, Set tiezis, Set tzReplies) {
        this.name = name;
        this.passwd = passwd;
        this.email = email;
        this.role = role;
        this.regtime = regtime;
        this.articles = articles;
        this.tiezis = tiezis;
        this.tzReplies = tzReplies;
    }

   
    // Property accessors

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getPasswd() {
        return this.passwd;
    }
    
    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole() {
        return this.role;
    }
    
    public void setRole(String role) {
        this.role = role;
    }

    public Timestamp getRegtime() {
        return this.regtime;
    }
    
    public void setRegtime(Timestamp regtime) {
        this.regtime = regtime;
    }

    public Set getArticles() {
        return this.articles;
    }
    
    public void setArticles(Set articles) {
        this.articles = articles;
    }

    public Set getTiezis() {
        return this.tiezis;
    }
    
    public void setTiezis(Set tiezis) {
        this.tiezis = tiezis;
    }

    public Set getTzReplies() {
        return this.tzReplies;
    }
    
    public void setTzReplies(Set tzReplies) {
        this.tzReplies = tzReplies;
    }

	@Override
	public String toString() {
		return "Member [articles=" + articles + ", email=" + email + ", name="
				+ name + ", passwd=" + passwd + ", regtime=" + regtime
				+ ", role=" + role + ", tiezis=" + tiezis + ", tzReplies="
				+ tzReplies + "]";
	}
   


    





}